package com.fa.production.mapper;

import com.fa.production.domain.*;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

public interface ProcessMapper {
    List<Processs> getlist(Processs process);


    @Select("select * from pro_route where route_id=#{routeId}")
    Processs selectProcesssById(Integer routeId);

    int insertProcesss(Processs process);

    int deleteProcesssById(List<Integer> routeId);

    int updateProcesss(Processs process);

    List<ProRouteProduct> getlist2(Integer routeId);

    List<ProRouteProcess> getlist1(Long routeId);

    int insertRouteProcesss(ProRouteProcess proRouteProcess);

    int deleteRouteProcesssById(List<Integer> recordId);

    @Select("select * from pro_route_process where record_id= #{recordId}")
    ProRouteProcess selectrouteProcesssById(Integer recordId);

    int updateRouteProcesss(ProRouteProcess proRouteProcess);

    @Select("select * from md_item_type")
    List<MdItemType> selectAllItem();

    List<MdItem> getMdItemList(MdItem mdItem);

    ArrayList<MdItem> getMdItemByIdList(ArrayList<Long> allIds);

    int insertRouteProduct(ProRouteProduct proRouteProduct);
    @Select("select * from pro_route_product where record_id= #{recordId}")
    ProRouteProduct selectRouteProductById(Integer recordId);

    int updateRouteProduct(ProRouteProduct proRouteProduct);

    int deleteRouteProductById(List<Integer> recordId);
}
